package mylab.unitconversion;

public class TemperatureConverter {
	
	public static final double five = 5.0;
	public static final double nine = 9.0;
	public static final double thirtyTwo = 32.0;
	public static final double KelvinConstant = 273.15;
	
	public static double celsiusToFahrenheit(double value)
	{
		return (value*nine/five)+thirtyTwo;
	}
	
	public static double fahrenheitToCelsius(double value)
	{
		return (value-thirtyTwo)*five/nine;
	}
	
	public static double celsiusToKelvin(double value)
	{
		return value+KelvinConstant;
	}
	
	public static double kelvinToCelsius(double value)
	{
		return value-KelvinConstant;
	}
	
	public static double fahrenheitToKelvin(double value)
	{
		return fahrenheitToCelsius(value)+KelvinConstant;
	}
	
	public static double kelvinToFahrenheit(double value)
	{
		return celsiusToFahrenheit(kelvinToCelsius(value));
	}
	
	
	
}
